(global.webpackJsonp = global.webpackJsonp || []).push([ [ "pages/movie/index" ], {
    "4a37": function(e, t, a) {
        a.r(t);
        var i, o = a("963a"), n = a.n(o);
        for (i in o) "default" !== i && function(e) {
            a.d(t, e, function() {
                return o[e];
            });
        }(i);
        t.default = n.a;
    },
    "67e1": function(e, t, a) {
        (function(e) {
            function t(e) {
                return e && e.__esModule ? e : {
                    default: e
                };
            }
            a("0cda"), t(a("66fd")), e(t(a("9550")).default);
        }).call(this, a("543d").createPage);
    },
    9550: function(e, t, a) {
        a.r(t);
        var i, o = a("bf53"), n = a("4a37");
        for (i in n) "default" !== i && function(e) {
            a.d(t, e, function() {
                return n[e];
            });
        }(i);
        a("a649");
        var r = a("f0c5"), o = Object(r.a)(n.default, o.b, o.c, !1, null, null, null, !1, o.a, void 0);
        t.default = o.exports;
    },
    "963a": function(e, l, d) {
        (function(n) {
            Object.defineProperty(l, "__esModule", {
                value: !0
            }), l.default = void 0;
            var e, r = (e = d("a34a")) && e.__esModule ? e : {
                default: e
            };
            function t(e, t, a) {
                return t in e ? Object.defineProperty(e, t, {
                    value: a,
                    enumerable: !0,
                    configurable: !0,
                    writable: !0
                }) : e[t] = a, e;
            }
            function c(e, t, a, i, o, n, r) {
                try {
                    var s = e[n](r), c = s.value;
                } catch (e) {
                    return a(e), 0;
                }
                s.done ? t(c) : Promise.resolve(c).then(i, o);
            }
            function i(s) {
                return function() {
                    var e = this, r = arguments;
                    return new Promise(function(t, a) {
                        var i = s.apply(e, r);
                        function o(e) {
                            c(i, t, a, o, n, "next", e);
                        }
                        function n(e) {
                            c(i, t, a, o, n, "throw", e);
                        }
                        o(void 0);
                    });
                };
            }
            var s = getApp(), g = null, a = d("e5c8"), o = (t(o = {
                data: function() {
                    return {
                        module_name: s.globalData.module_name,
                        showAlert_login: !1,
                        userinfo: n.getStorageSync("userinfo"),
                        setting: n.getStorageSync("setting"),
                        wxCode: "",
                        swiperItems: [],
                        waimaidaohang: [],
                        waimailist: [],
                        systemtype: "",
                        show1: !1,
                        qudao_tkl: "",
                        selectMenu1: [],
                        selectMenu1s: [],
                        selectIndex1: 0,
                        moviehotlist: [],
                        moviecomelist: [],
                        moviehotlists: [],
                        moviecomelists: [],
                        currentIndex: 0,
                        tabs: [ "热映", "影院", "即将上映" ],
                        mainHeight: 900,
                        pageLoading: !0,
                        city: "",
                        cityid: 40,
                        cityfontsize: 28,
                        value1: "",
                        movielist: [],
                        cinemalist: [],
                        cinemalist2: [],
                        movielists: [],
                        cinemalists: [],
                        cinemalist2s: [],
                        pageKey: "",
                        height: 1334,
                        tabBar: [],
                        is_qudao_tkl: 0,
                        showAlert_taobaoauth: !1,
                        elm_url: [],
                        meituan_url: [],
                        showAlert: !1,
                        contact_title: "",
                        contact_title_text: "",
                        contact_title_desc: "",
                        contact_id: "",
                        contact_type: "",
                        contact_thumb: "",
                        showToast_login: !1,
                        mtpic: 0,
                        lat: 0,
                        lon: 0,
                        isFixed: !1,
                        headerHeight: 100,
                        onloading: 1,
                        sharetitle: "",
                        sharepic: "",
                        appid: "",
                        path: "",
                        search_id: "",
                        uid: 0,
                        scrollHeight: 0
                    };
                },
                components: {
                    gracePage: function() {
                        d.e("graceUI/components/gracePage").then(function() {
                            return resolve(d("1021"));
                        }.bind(null, d)).catch(d.oe);
                    },
                    graceHeader: function() {
                        d.e("graceUI/components/graceHeader").then(function() {
                            return resolve(d("266b"));
                        }.bind(null, d)).catch(d.oe);
                    },
                    graceNavBar: function() {
                        d.e("graceUI/components/graceNavBar").then(function() {
                            return resolve(d("a631"));
                        }.bind(null, d)).catch(d.oe);
                    },
                    graceShade: function() {
                        d.e("graceUI/components/graceShade").then(function() {
                            return resolve(d("31ed"));
                        }.bind(null, d)).catch(d.oe);
                    },
                    graceDialog: function() {
                        d.e("graceUI/components/graceDialog").then(function() {
                            return resolve(d("f85d"));
                        }.bind(null, d)).catch(d.oe);
                    },
                    graceLoading: function() {
                        d.e("graceUI/components/graceLoading").then(function() {
                            return resolve(d("1d04"));
                        }.bind(null, d)).catch(d.oe);
                    },
                    graceFlex: function() {
                        d.e("graceUI/components/graceFlex").then(function() {
                            return resolve(d("b5c9"));
                        }.bind(null, d)).catch(d.oe);
                    },
                    graceSearch: function() {
                        d.e("graceUI/components/graceSearch").then(function() {
                            return resolve(d("de21"));
                        }.bind(null, d)).catch(d.oe);
                    },
                    graceSelectMenu: function() {
                        d.e("graceUI/components/graceSelectMenu2").then(function() {
                            return resolve(d("5c6b"));
                        }.bind(null, d)).catch(d.oe);
                    },
                    graceEmptyNew: function() {
                        d.e("graceUI/components/graceEmptyNew").then(function() {
                            return resolve(d("f8df"));
                        }.bind(null, d)).catch(d.oe);
                    },
                    graceSwiper: function() {
                        d.e("graceUI/components/graceSwiper").then(function() {
                            return resolve(d("9fc3"));
                        }.bind(null, d)).catch(d.oe);
                    },
                    addMiniTip: function() {
                        Promise.all([ d.e("common/vendor"), d.e("components/add-mini-tip/add-mini-tip") ]).then(function() {
                            return resolve(d("00a6"));
                        }.bind(null, d)).catch(d.oe);
                    }
                },
                props: {},
                onReady: function() {
                    this.autoUpdate();
                    var t = this;
                    n.createSelectorQuery().select("#aheader").fields({
                        size: !0
                    }, function(e) {
                        e && (t.headerHeight = e.height, console.log(e.height));
                    }).exec(), n.createSelectorQuery().select("#header").fields({
                        size: !0
                    }, function(e) {
                        e && (t.headerHeight = e.height, console.log(e.height));
                    }).exec(), setTimeout(function() {
                        n.hideLoading();
                    }, 2e3);
                },
                onPageScroll: function(e) {
                    1 == n.getStorageSync("setting").index_type_movie && (e.scrollTop >= this.headerHeight ? this.isFixed = !0 : this.isFixed = !1);
                },
                onShow: function() {
                    var o = this;
                    return i(r.default.mark(function e() {
                        var t, a, i;
                        return r.default.wrap(function(e) {
                            for (;;) switch (e.prev = e.next) {
                              case 0:
                                return e.next = 2, o.$onLaunched;

                              case 2:
                                for (t = 0, o.tabBar = n.getStorageSync("tabbar"), a = 0; a < o.tabBar.list.length; a++) -1 != o.tabBar.list[a].url.indexOf("movie/index") && (o.pageKey = a, 
                                t = 1);
                                0 == t && (o.pageKey = -1), o.userinfo = n.getStorageSync("userinfo"), o.city != n.getStorageSync("cityname") && n.getStorageSync("cityname") && (n.showLoading({
                                    title: "加载中...",
                                    mask: !1
                                }), o.currentIndex = 0, o.cinemalist = [], o.cinemalist2 = [], o.selectMenu1 = [], 
                                o.selectIndex1 = 0, o.loadmovielist2()), n.getStorageSync("cityname") && n.getStorageSync("cityid") && (o.city = n.getStorageSync("cityname"), 
                                o.cityid = n.getStorageSync("cityid"), o.loadmovielist()), 1 == n.getStorageSync("setting").index_type_movie && (n.getStorageSync("openid") && (i = s.globalData.util.url("entry/wxapp/api", {
                                    m: s.globalData.module_name,
                                    o: "chkpid"
                                }), n.request({
                                    url: i,
                                    method: "POST",
                                    header: {
                                        "content-type": "application/x-www-form-urlencoded"
                                    },
                                    data: {
                                        openid: n.getStorageSync("openid")
                                    },
                                    success: function(e) {
                                        e = s.globalData.crypt.Decrypt(e.data.data.data, e.data.data.key), e = JSON.parse(e);
                                        n.setStorageSync("pid_use_time", e), n.getStorageSync("pid_time") != n.getStorageSync("pid_use_time") && (n.setStorageSync("elmwm_url", ""), 
                                        n.setStorageSync("elmsc_url", ""), n.setStorageSync("elmwmposter", ""), n.setStorageSync("elmscposter", ""), 
                                        n.setStorageSync("pid_time", n.getStorageSync("pid_use_time")));
                                    }
                                })), g && g.show().catch(function(e) {
                                    console.error(e);
                                }));

                              case 11:
                              case "end":
                                return e.stop();
                            }
                        }, e);
                    }))();
                }
            }, "onReady", function() {
                var a = this;
                setTimeout(function() {
                    n.createSelectorQuery().select("#gBody").fields({
                        size: !0
                    }, function(t) {
                        n.createSelectorQuery().select("#nav").fields({
                            size: !0
                        }, function(e) {
                            a.mainHeight = t.height - e.height, a.pageLoading = !1;
                        }).exec();
                    }).exec();
                }, 1e3);
            }), t(o, "onLoad", function(e) {
                var a = this;
                return i(r.default.mark(function e() {
                    var t;
                    return r.default.wrap(function(e) {
                        for (;;) switch (e.prev = e.next) {
                          case 0:
                            return e.next = 2, a.$onLaunched;

                          case 2:
                            t = a, n.setStorageSync("cityname", ""), n.setStorageSync("cityid", ""), t.setting = n.getStorageSync("setting"), 
                            t.userinfo = n.getStorageSync("userinfo"), a.module_name = s.globalData.module_name, 
                            n.showLoading({
                                title: "加载中...",
                                mask: !1
                            }), t.getLocation(), n.getStorageSync("setting").ad_index_cp_id && wx.createInterstitialAd && ((g = wx.createInterstitialAd({
                                adUnitId: n.getStorageSync("setting").ad_index_cp_id
                            })).onLoad(function() {}), g.onError(function(e) {
                                console.log("onError event emit", e);
                            }), g.onClose(function() {}), g && g.show().catch(function(e) {
                                console.log("onError event emit", e);
                            }));

                          case 13:
                          case "end":
                            return e.stop();
                        }
                    }, e);
                }))();
            }), t(o, "onShareAppMessage", function() {
                var e = "pages/movie/index?uid=" + n.getStorageSync("userinfo").user_id;
                return {
                    title: this.sharetitle,
                    imageUrl: this.sharepic,
                    path: e
                };
            }), t(o, "methods", {
                movie_ticket_code: function() {
                    n.navigateTo({
                        url: "../user/movieorder?type=done"
                    });
                },
                movie_order_list: function() {
                    n.navigateTo({
                        url: "../user/movieorder"
                    });
                },
                movie_customer_service_wx: function() {
                    a.previewImage([ this.setting.movie_kefupic ]);
                },
                movie_customer_service_tel: function() {
                    n.makePhoneCall({
                        phoneNumber: this.setting.movie_kefutel
                    });
                },
                showDialog1: function() {
                    this.$refs.showAlert_taobaoauth.open();
                },
                closeDialog1: function() {
                    this.$refs.showAlert_taobaoauth.hide();
                },
                showDialog2: function() {
                    this.$refs.showAlert_login.open();
                },
                closeDialog2: function() {
                    this.$refs.showAlert_login.hide();
                },
                showDialog3: function() {
                    this.$refs.showAlert.open();
                },
                closeDialog3: function() {
                    this.$refs.showAlert.hide();
                },
                userlogin: function() {
                    !n.getStorageSync("userinfo").nickname && 1 == n.getStorageSync("setting").login_type && wx.getUserProfile ? this.showDialog2() : this.closeDialog2();
                },
                checksubmessage: function(e) {
                    var a;
                    n.getStorageSync("userinfo").nickname || 1 != n.getStorageSync("setting").login_type || !wx.getUserProfile ? (a = this, 
                    wx.requestSubscribeMessage({
                        tmplIds: n.getStorageSync("setting").warn_tplid,
                        success: function(e) {
                            console.log(e), "reject" == e[n.getStorageSync("setting").warn_yhq_tplid] ? wx.showToast({
                                title: "您拒绝了订阅消息",
                                duration: 1e3,
                                success: function(e) {}
                            }) : wx.showToast({
                                title: "订阅成功",
                                duration: 1e3,
                                success: function(e) {
                                    var t = s.globalData.util.url("entry/wxapp/api", {
                                        m: s.globalData.module_name,
                                        o: "subscribemessage"
                                    });
                                    n.request({
                                        url: t,
                                        method: "POST",
                                        header: {
                                            "content-type": "application/x-www-form-urlencoded"
                                        },
                                        data: {
                                            openid: n.getStorageSync("openid"),
                                            type: 1
                                        },
                                        success: function(e) {
                                            var t = a.userinfo;
                                            a.warn_num++, t.s_1_num++, a.userinfo = t, n.setStorageSync("warn_daynum", e.data.warm_daynum);
                                        }
                                    });
                                }
                            });
                        },
                        fail: function(e) {}
                    })) : this.showDialog2();
                },
                getWxCode: function() {
                    var t = this;
                    wx.login({
                        success: function(e) {
                            t.wxCode = e.code;
                        }
                    });
                },
                updatepid: function() {
                    var e = s.globalData.util.url("entry/wxapp/api", {
                        m: s.globalData.module_name,
                        o: "updatepid"
                    });
                    n.request({
                        url: e,
                        method: "POST",
                        header: {
                            "content-type": "application/x-www-form-urlencoded"
                        },
                        data: {
                            openid: n.getStorageSync("openid")
                        },
                        success: function(e) {}
                    });
                },
                login: function(t) {
                    var a = this;
                    this.closeDialog2(), n.getSetting({
                        success: function(e) {
                            e.authSetting["scope.userInfo"] ? n.getUserInfo({
                                success: function(e) {
                                    a.userAuth(t, e.userInfo, "login");
                                }
                            }) : a.userAuth(t, null, "login");
                        }
                    });
                },
                getUserProfile: function() {
                    var a = this;
                    wx.getUserProfile({
                        desc: "请完善会员资料",
                        success: function(e) {
                            console.log(e.userInfo);
                            var t = s.globalData.util.url("entry/wxapp/userinfo2", {
                                m: s.globalData.module_name
                            }), e = {
                                avatarUrl: e.userInfo.avatarUrl,
                                nickName: e.userInfo.nickName,
                                openid: n.getStorageSync("openid")
                            };
                            n.request({
                                url: t,
                                method: "POST",
                                header: {
                                    "content-type": "application/x-www-form-urlencoded"
                                },
                                data: e,
                                success: function(e) {
                                    1 == e.data.status && (n.setStorageSync("userinfo", e.data.data.userinfo), a.userinfo = e.data.data.userinfo, 
                                    a.closeDialog2(), n.showToast({
                                        title: "登录成功",
                                        icon: "none"
                                    }));
                                }
                            });
                        }
                    });
                },
                userAuth: function(a, e, i) {
                    var o = this;
                    "getUserInfo:ok" == a.detail.errMsg && wx.login({
                        success: function(e) {
                            var t = s.globalData.util.url("entry/wxapp/api", {
                                m: s.globalData.module_name,
                                o: "userinfo"
                            }), e = {
                                code: e.code,
                                encryptedData: a.detail.encryptedData,
                                iv: a.detail.iv,
                                openid: n.getStorageSync("openid"),
                                invite_uid: wx.getStorageSync("invite_uid")
                            };
                            n.request({
                                url: t,
                                method: "POST",
                                header: {
                                    "content-type": "application/x-www-form-urlencoded"
                                },
                                data: e,
                                success: function(e) {
                                    1 == e.data.status && (e = s.globalData.crypt.Decrypt(e.data.data.data, e.data.data.key), 
                                    e = JSON.parse(e), n.setStorageSync("userinfo", e.userinfo), o.userinfo = e.userinfo, 
                                    "login" == i && (o.closeDialog2(), n.showToast({
                                        title: "登录成功",
                                        icon: "none"
                                    })));
                                }
                            });
                        }
                    });
                },
                opencity: function() {
                    n.navigateTo({
                        url: "../../pagesA/pages/movieA/city"
                    });
                },
                closeAlert: function() {
                    this.closeDialog2();
                },
                loadsetting: function() {
                    var t = this, e = s.globalData.util.url("entry/wxapp/api", {
                        m: s.globalData.module_name,
                        o: "setting"
                    });
                    n.request({
                        url: e,
                        method: "POST",
                        header: {
                            "content-type": "application/x-www-form-urlencoded"
                        },
                        data: {
                            openid: n.getStorageSync("openid")
                        },
                        success: function(e) {
                            e = s.globalData.crypt.Decrypt(e.data.data.data, e.data.data.key), e = JSON.parse(e);
                            n.setStorageSync("setting", e.setting), t.setting = e.setting, 1 == n.getStorageSync("setting").index_type_movie && (n.getStorageSync("setting").ad_index_cp_id && wx.createInterstitialAd && ((g = wx.createInterstitialAd({
                                adUnitId: n.getStorageSync("setting").ad_index_cp_id
                            })).onLoad(function() {}), g.onError(function(e) {
                                console.log("onError event emit", e);
                            }), g.onClose(function() {}), g && g.show().catch(function(e) {
                                console.log("onError event emit", e);
                            })), n.setNavigationBarTitle({
                                title: n.getStorageSync("setting").waimaitt_navigationBarTitleText
                            }), n.setNavigationBarColor({
                                backgroundColor: n.getStorageSync("setting").waimaitt_navigationBarBackgroundColor,
                                frontColor: n.getStorageSync("setting").waimaitt_navigationBarTextStyle
                            }));
                        }
                    });
                },
                meituan_urlFun: function() {
                    var e, t = this;
                    1 == t.appid_type && n.getStorageSync("mtwm_url") ? n.navigateToMiniProgram({
                        appId: "wxde8ac0a21135c07d",
                        path: n.getStorageSync("mtwm_url")
                    }) : 2 == t.appid_type && n.getStorageSync("mtsc_url") ? n.navigateToMiniProgram({
                        appId: "wxde8ac0a21135c07d",
                        path: n.getStorageSync("mtsc_url")
                    }) : (e = s.globalData.util.url("entry/wxapp/api", {
                        m: s.globalData.module_name,
                        o: "qrcode_mtelm"
                    }), n.request({
                        url: e,
                        method: "POST",
                        header: {
                            "content-type": "application/x-www-form-urlencoded"
                        },
                        data: {
                            openid: n.getStorageSync("openid"),
                            appid_type: t.appid_type
                        },
                        success: function(e) {
                            e = s.globalData.crypt.Decrypt(e.data.data.data, e.data.data.key), e = JSON.parse(e);
                            console.log("qrcode_mtelm:" + e), 1 == t.appid_type && (n.setStorageSync("mtwm_url", e.mtwm_url), 
                            n.setStorageSync("mtwm_h5", e.mtwm_h5), n.setStorageSync("mtwmqrcode2", e.mtwm_qrcode), 
                            1 == t.mtpic ? n.previewImage({
                                urls: [ n.getStorageSync("mtwmqrcode2") ]
                            }) : n.navigateToMiniProgram({
                                appId: "wxde8ac0a21135c07d",
                                path: e.mtwm_url
                            })), 2 == t.appid_type && (n.setStorageSync("mtsc_url", e.mtsc_url), n.setStorageSync("mtsc_h5", e.mtsc_h5), 
                            n.setStorageSync("mtscqrcode2", e.mtsc_qrcode), 1 == t.mtpic ? n.previewImage({
                                urls: [ n.getStorageSync("mtscqrcode2") ]
                            }) : n.navigateToMiniProgram({
                                appId: "wxde8ac0a21135c07d",
                                path: e.mtsc_url
                            }));
                        }
                    }));
                },
                loadSwiperitems: function() {
                    var t = this, e = s.globalData.util.url("entry/wxapp/movie_ad", {
                        m: s.globalData.module_name
                    });
                    n.request({
                        url: e,
                        method: "POST",
                        header: {
                            "content-type": "application/x-www-form-urlencoded"
                        },
                        data: {
                            cateid: 1,
                            openid: n.getStorageSync("openid")
                        },
                        success: function(e) {
                            t.swiperItems = e.data.swiperitems, n.stopPullDownRefresh();
                        }
                    });
                },
                load_goods: function() {
                    var t = this, e = s.globalData.util.url("entry/wxapp/api", {
                        m: s.globalData.module_name,
                        o: "goods"
                    });
                    n.request({
                        url: e,
                        method: "POST",
                        header: {
                            "content-type": "application/x-www-form-urlencoded"
                        },
                        data: {
                            openid: n.getStorageSync("openid")
                        },
                        success: function(e) {
                            e = s.globalData.crypt.Decrypt(e.data.data.data, e.data.data.key), e = JSON.parse(e);
                            t.youlikes = e.data.items;
                        }
                    });
                },
                taped: function(a) {
                    if (n.getStorageSync("userinfo").nickname || 1 != n.getStorageSync("setting").login_type || !wx.getUserProfile) {
                        var i = this;
                        if (1 == this.swiperItems[a].is_ios && "ios" == n.getStorageSync("systemtype") && 0 == n.getStorageSync("setting").ios) {
                            var e = s.globalData.util.url("entry/wxapp/api", {
                                m: s.globalData.module_name,
                                o: "ad_kefubind"
                            });
                            return n.request({
                                url: e,
                                method: "POST",
                                header: {
                                    "content-type": "application/x-www-form-urlencoded"
                                },
                                data: {
                                    adtype: "ad",
                                    adid: i.swiperItems[a].item_id,
                                    openid: n.getStorageSync("openid")
                                },
                                success: function(e) {}
                            }), this.contact_type = "ad", this.contact_id = this.swiperItems[a].item_id, this.contact_title = this.swiperItems[a].title, 
                            this.contact_title_text = "暂不可用", this.contact_title_desc = "由于相关规范，ios功能暂不可用", 
                            this.contact_thumb = n.getStorageSync("setting").dianwo, void this.showDialog3();
                        }
                        if (1 == i.swiperItems[a].adtype) {
                            if (0 < i.swiperItems[a].appid_type && i.swiperItems[a].appid_type <= 4) if (0 < n.getStorageSync("setting").warn_tplid.length && n.getStorageSync("warn_daynum") < n.getStorageSync("setting").warn_tpl_daynum) wx.requestSubscribeMessage({
                                tmplIds: n.getStorageSync("setting").warn_tplid,
                                success: function(e) {
                                    if (console.log(e), "reject" == e[n.getStorageSync("setting").warn_yhq_tplid]) return 1 == i.swiperItems[a].appid_type && n.getStorageSync("mtwm_url") ? !n.getStorageSync("userinfo").nickname && 1 == n.getStorageSync("setting").login_type && wx.getUserProfile ? void i.showDialog2() : 1 == i.swiperItems[a].mtpic ? void n.previewImage({
                                        urls: [ n.getStorageSync("mtwmqrcode2") ]
                                    }) : void n.navigateToMiniProgram({
                                        appId: "wxde8ac0a21135c07d",
                                        path: n.getStorageSync("mtwm_url")
                                    }) : 1 != i.swiperItems[a].appid_type || n.getStorageSync("mtwm_url") ? 2 == i.swiperItems[a].appid_type && n.getStorageSync("mtsc_url") ? !n.getStorageSync("userinfo").nickname && 1 == n.getStorageSync("setting").login_type && wx.getUserProfile ? void i.showDialog2() : 1 == i.swiperItems[a].mtpic ? void n.previewImage({
                                        urls: [ n.getStorageSync("mtscqrcode2") ]
                                    }) : void n.navigateToMiniProgram({
                                        appId: "wxde8ac0a21135c07d",
                                        path: n.getStorageSync("mtsc_url")
                                    }) : 2 != i.swiperItems[a].appid_type || n.getStorageSync("mtsc_url") ? 3 == i.swiperItems[a].appid_type && n.getStorageSync("elmwm_url") ? !n.getStorageSync("userinfo").nickname && 1 == n.getStorageSync("setting").login_type && wx.getUserProfile ? void i.showDialog2() : (n.navigateToMiniProgram({
                                        appId: "wxece3a9a4c82f58c9",
                                        path: n.getStorageSync("elmwm_url")
                                    }), i.updatepid(), void console.log(n.getStorageSync("elmwm_url"))) : 3 != i.swiperItems[a].appid_type || n.getStorageSync("elmwm_url") ? 4 == i.swiperItems[a].appid_type && n.getStorageSync("elmsc_url") ? !n.getStorageSync("userinfo").nickname && 1 == n.getStorageSync("setting").login_type && wx.getUserProfile ? void i.showDialog2() : (n.navigateToMiniProgram({
                                        appId: "wxece3a9a4c82f58c9",
                                        path: n.getStorageSync("elmsc_url")
                                    }), i.updatepid(), void console.log(n.getStorageSync("elmsc_url"))) : 4 != i.swiperItems[a].appid_type || n.getStorageSync("elmsc_url") ? void n.request({
                                        url: t,
                                        method: "POST",
                                        header: {
                                            "content-type": "application/x-www-form-urlencoded"
                                        },
                                        data: {
                                            openid: n.getStorageSync("openid"),
                                            type: 1
                                        },
                                        success: function(e) {
                                            n.setStorageSync("warn_daynum", e.data.warm_daynum);
                                        }
                                    }) : !n.getStorageSync("userinfo").nickname && 1 == n.getStorageSync("setting").login_type && wx.getUserProfile ? void i.showDialog2() : (i.appid_type = 4, 
                                    void i.gettaobaoauth()) : !n.getStorageSync("userinfo").nickname && 1 == n.getStorageSync("setting").login_type && wx.getUserProfile ? void i.showDialog2() : (i.appid_type = 3, 
                                    void i.gettaobaoauth()) : !n.getStorageSync("userinfo").nickname && 1 == n.getStorageSync("setting").login_type && wx.getUserProfile ? void i.showDialog2() : (i.appid_type = 2, 
                                    i.mtpic = i.swiperItems[a].mtpic, void i.meituan_urlFun()) : !n.getStorageSync("userinfo").nickname && 1 == n.getStorageSync("setting").login_type && wx.getUserProfile ? void i.showDialog2() : (i.appid_type = 1, 
                                    i.mtpic = i.swiperItems[a].mtpic, void i.meituan_urlFun());
                                    var t = s.globalData.util.url("entry/wxapp/api", {
                                        m: s.globalData.module_name,
                                        o: "subscribemessage"
                                    });
                                    return n.request({
                                        url: t,
                                        method: "POST",
                                        header: {
                                            "content-type": "application/x-www-form-urlencoded"
                                        },
                                        data: {
                                            openid: n.getStorageSync("openid"),
                                            type: 1
                                        },
                                        success: function(e) {
                                            var t = i.userinfo;
                                            i.warn_num++, t.s_1_num++, i.userinfo = t, n.setStorageSync("warn_daynum", e.data.warm_daynum);
                                        }
                                    }), 1 == i.swiperItems[a].appid_type && n.getStorageSync("mtwm_url") ? !n.getStorageSync("userinfo").nickname && 1 == n.getStorageSync("setting").login_type && wx.getUserProfile ? void i.showDialog2() : 1 == i.swiperItems[a].mtpic ? void n.previewImage({
                                        urls: [ n.getStorageSync("mtwmqrcode2") ]
                                    }) : void n.navigateToMiniProgram({
                                        appId: "wxde8ac0a21135c07d",
                                        path: n.getStorageSync("mtwm_url")
                                    }) : 1 != i.swiperItems[a].appid_type || n.getStorageSync("mtwm_url") ? 2 == i.swiperItems[a].appid_type && n.getStorageSync("mtsc_url") ? !n.getStorageSync("userinfo").nickname && 1 == n.getStorageSync("setting").login_type && wx.getUserProfile ? void i.showDialog2() : 1 == i.swiperItems[a].mtpic ? void n.previewImage({
                                        urls: [ n.getStorageSync("mtscqrcode2") ]
                                    }) : void n.navigateToMiniProgram({
                                        appId: "wxde8ac0a21135c07d",
                                        path: n.getStorageSync("mtsc_url")
                                    }) : 2 != i.swiperItems[a].appid_type || n.getStorageSync("mtsc_url") ? 3 == i.swiperItems[a].appid_type && n.getStorageSync("elmwm_url") ? !n.getStorageSync("userinfo").nickname && 1 == n.getStorageSync("setting").login_type && wx.getUserProfile ? void i.showDialog2() : (n.navigateToMiniProgram({
                                        appId: "wxece3a9a4c82f58c9",
                                        path: n.getStorageSync("elmwm_url")
                                    }), i.updatepid(), void console.log(n.getStorageSync("elmwm_url"))) : 3 != i.swiperItems[a].appid_type || n.getStorageSync("elmwm_url") ? 4 == i.swiperItems[a].appid_type && n.getStorageSync("elmsc_url") ? !n.getStorageSync("userinfo").nickname && 1 == n.getStorageSync("setting").login_type && wx.getUserProfile ? void i.showDialog2() : (n.navigateToMiniProgram({
                                        appId: "wxece3a9a4c82f58c9",
                                        path: n.getStorageSync("elmsc_url")
                                    }), i.updatepid(), void console.log(n.getStorageSync("elmsc_url"))) : 4 != i.swiperItems[a].appid_type || n.getStorageSync("elmsc_url") ? void 0 : !n.getStorageSync("userinfo").nickname && 1 == n.getStorageSync("setting").login_type && wx.getUserProfile ? void i.showDialog2() : (i.appid_type = 4, 
                                    void i.gettaobaoauth()) : !n.getStorageSync("userinfo").nickname && 1 == n.getStorageSync("setting").login_type && wx.getUserProfile ? void i.showDialog2() : (i.appid_type = 3, 
                                    void i.gettaobaoauth()) : !n.getStorageSync("userinfo").nickname && 1 == n.getStorageSync("setting").login_type && wx.getUserProfile ? void i.showDialog2() : (i.appid_type = 2, 
                                    i.mtpic = i.swiperItems[a].mtpic, void i.meituan_urlFun()) : !n.getStorageSync("userinfo").nickname && 1 == n.getStorageSync("setting").login_type && wx.getUserProfile ? void i.showDialog2() : (i.appid_type = 1, 
                                    i.mtpic = i.swiperItems[a].mtpic, void i.meituan_urlFun());
                                },
                                fail: function() {
                                    return 1 == i.swiperItems[a].appid_type && n.getStorageSync("mtwm_url") ? !n.getStorageSync("userinfo").nickname && 1 == n.getStorageSync("setting").login_type && wx.getUserProfile ? void i.showDialog2() : 1 == i.swiperItems[a].mtpic ? void n.previewImage({
                                        urls: [ n.getStorageSync("mtwmqrcode2") ]
                                    }) : void n.navigateToMiniProgram({
                                        appId: "wxde8ac0a21135c07d",
                                        path: n.getStorageSync("mtwm_url")
                                    }) : 1 != i.swiperItems[a].appid_type || n.getStorageSync("mtwm_url") ? 2 == i.swiperItems[a].appid_type && n.getStorageSync("mtsc_url") ? !n.getStorageSync("userinfo").nickname && 1 == n.getStorageSync("setting").login_type && wx.getUserProfile ? void i.showDialog2() : 1 == i.swiperItems[a].mtpic ? void n.previewImage({
                                        urls: [ n.getStorageSync("mtscqrcode2") ]
                                    }) : void n.navigateToMiniProgram({
                                        appId: "wxde8ac0a21135c07d",
                                        path: n.getStorageSync("mtsc_url")
                                    }) : 2 != i.swiperItems[a].appid_type || n.getStorageSync("mtsc_url") ? 3 == i.swiperItems[a].appid_type && n.getStorageSync("elmwm_url") ? !n.getStorageSync("userinfo").nickname && 1 == n.getStorageSync("setting").login_type && wx.getUserProfile ? void i.showDialog2() : (n.navigateToMiniProgram({
                                        appId: "wxece3a9a4c82f58c9",
                                        path: n.getStorageSync("elmwm_url")
                                    }), i.updatepid(), void console.log(n.getStorageSync("elmwm_url"))) : 3 != i.swiperItems[a].appid_type || n.getStorageSync("elmwm_url") ? 4 == i.swiperItems[a].appid_type && n.getStorageSync("elmsc_url") ? !n.getStorageSync("userinfo").nickname && 1 == n.getStorageSync("setting").login_type && wx.getUserProfile ? void i.showDialog2() : (n.navigateToMiniProgram({
                                        appId: "wxece3a9a4c82f58c9",
                                        path: n.getStorageSync("elmsc_url")
                                    }), i.updatepid(), void console.log(n.getStorageSync("elmsc_url"))) : 4 != i.swiperItems[a].appid_type || n.getStorageSync("elmsc_url") ? void 0 : !n.getStorageSync("userinfo").nickname && 1 == n.getStorageSync("setting").login_type && wx.getUserProfile ? void i.showDialog2() : (i.appid_type = 4, 
                                    void i.gettaobaoauth()) : !n.getStorageSync("userinfo").nickname && 1 == n.getStorageSync("setting").login_type && wx.getUserProfile ? void i.showDialog2() : (i.appid_type = 3, 
                                    void i.gettaobaoauth()) : !n.getStorageSync("userinfo").nickname && 1 == n.getStorageSync("setting").login_type && wx.getUserProfile ? void i.showDialog2() : (i.appid_type = 2, 
                                    i.mtpic = i.swiperItems[a].mtpic, void i.meituan_urlFun()) : !n.getStorageSync("userinfo").nickname && 1 == n.getStorageSync("setting").login_type && wx.getUserProfile ? void i.showDialog2() : (i.appid_type = 1, 
                                    i.mtpic = i.swiperItems[a].mtpic, void i.meituan_urlFun());
                                }
                            }); else {
                                if (e = s.globalData.util.url("entry/wxapp/api", {
                                    m: s.globalData.module_name,
                                    o: "subscribemessage"
                                }), n.request({
                                    url: e,
                                    method: "POST",
                                    header: {
                                        "content-type": "application/x-www-form-urlencoded"
                                    },
                                    data: {
                                        openid: n.getStorageSync("openid"),
                                        type: 2
                                    },
                                    success: function(e) {
                                        n.setStorageSync("warn_daynum", e.data.warm_daynum);
                                    }
                                }), 1 == i.swiperItems[a].appid_type && n.getStorageSync("mtwm_url")) return !n.getStorageSync("userinfo").nickname && 1 == n.getStorageSync("setting").login_type && wx.getUserProfile ? void i.showDialog2() : 1 == i.swiperItems[a].mtpic ? void n.previewImage({
                                    urls: [ n.getStorageSync("mtwmqrcode2") ]
                                }) : void n.navigateToMiniProgram({
                                    appId: "wxde8ac0a21135c07d",
                                    path: n.getStorageSync("mtwm_url")
                                });
                                if (1 == i.swiperItems[a].appid_type && !n.getStorageSync("mtwm_url")) return !n.getStorageSync("userinfo").nickname && 1 == n.getStorageSync("setting").login_type && wx.getUserProfile ? void i.showDialog2() : (i.appid_type = 1, 
                                i.mtpic = i.swiperItems[a].mtpic, void i.meituan_urlFun());
                                if (2 == i.swiperItems[a].appid_type && n.getStorageSync("mtsc_url")) return !n.getStorageSync("userinfo").nickname && 1 == n.getStorageSync("setting").login_type && wx.getUserProfile ? void i.showDialog2() : 1 == i.swiperItems[a].mtpic ? void n.previewImage({
                                    urls: [ n.getStorageSync("mtscqrcode2") ]
                                }) : void n.navigateToMiniProgram({
                                    appId: "wxde8ac0a21135c07d",
                                    path: n.getStorageSync("mtsc_url")
                                });
                                if (2 == i.swiperItems[a].appid_type && !n.getStorageSync("mtsc_url")) return !n.getStorageSync("userinfo").nickname && 1 == n.getStorageSync("setting").login_type && wx.getUserProfile ? void i.showDialog2() : (i.appid_type = 2, 
                                i.mtpic = i.swiperItems[a].mtpic, void i.meituan_urlFun());
                                if (3 == i.swiperItems[a].appid_type && n.getStorageSync("elmwm_url")) return !n.getStorageSync("userinfo").nickname && 1 == n.getStorageSync("setting").login_type && wx.getUserProfile ? void i.showDialog2() : (n.navigateToMiniProgram({
                                    appId: "wxece3a9a4c82f58c9",
                                    path: n.getStorageSync("elmwm_url")
                                }), i.updatepid(), void console.log(n.getStorageSync("elmwm_url")));
                                if (3 == i.swiperItems[a].appid_type && !n.getStorageSync("elmwm_url")) return n.getStorageSync("userinfo").nickname || 1 != n.getStorageSync("setting").login_type ? (i.appid_type = 3, 
                                void i.gettaobaoauth()) : void i.showDialog2();
                                if (4 == i.swiperItems[a].appid_type && n.getStorageSync("elmsc_url")) return !n.getStorageSync("userinfo").nickname && 1 == n.getStorageSync("setting").login_type && wx.getUserProfile ? void i.showDialog2() : (n.navigateToMiniProgram({
                                    appId: "wxece3a9a4c82f58c9",
                                    path: n.getStorageSync("elmsc_url")
                                }), i.updatepid(), void console.log(n.getStorageSync("elmsc_url")));
                                if (4 == i.swiperItems[a].appid_type && !n.getStorageSync("elmsc_url")) return !n.getStorageSync("userinfo").nickname && 1 == n.getStorageSync("setting").login_type && wx.getUserProfile ? void i.showDialog2() : (i.appid_type = 4, 
                                void i.gettaobaoauth());
                            }
                            if (0 == i.swiperItems[a].appid_type) return void n.navigateToMiniProgram({
                                appId: i.swiperItems[a].appid,
                                path: i.swiperItems[a].path
                            });
                        }
                        if (5 == i.swiperItems[a].adtype && n.navigateTo({
                            url: "../kefu/webview?return_url=" + encodeURIComponent(i.swiperItems[a].url)
                        }), 4 != i.swiperItems[a].adtype) 2 != i.swiperItems[a].adtype && 3 != i.swiperItems[a].adtype || (e = s.globalData.util.url("entry/wxapp/api", {
                            m: s.globalData.module_name,
                            o: "ad_kefubind"
                        }), n.request({
                            url: e,
                            method: "POST",
                            header: {
                                "content-type": "application/x-www-form-urlencoded"
                            },
                            data: {
                                adtype: "ad",
                                adid: i.swiperItems[a].item_id,
                                openid: n.getStorageSync("openid")
                            },
                            success: function(e) {}
                        }), i.contact_title_desc = "", i.contact_type = "ad", i.contact_id = i.swiperItems[a].item_id, 
                        i.contact_title = i.swiperItems[a].title, i.contact_title_text = i.swiperItems[a].title_text, 
                        i.contact_title_desc = i.swiperItems[a].title_desc, i.contact_thumb = n.getStorageSync("setting").dianwo, 
                        i.showDialog3()); else if (n.setStorageSync("index_nav", i.swiperItems[a].url), 
                        -1 == i.swiperItems[a].url.indexOf("../index/") && -1 == i.swiperItems[a].url.indexOf("../user/") && -1 == i.swiperItems[a].url.indexOf("../movie/") && -1 == i.swiperItems[a].url.indexOf("../shop/") && -1 == i.swiperItems[a].url.indexOf("../kefu/")) {
                            if (-1 == i.swiperItems[a].url.indexOf("../../../pages/index/") && -1 == i.swiperItems[a].url.indexOf("../../../pages/user/") && -1 == i.swiperItems[a].url.indexOf("../../../pages/kefu/")) return -1 != i.swiperItems[a].url.indexOf("../../../pages/meituan/") || -1 != i.swiperItems[a].url.indexOf("../../../pages/elm/") || -1 != i.swiperItems[a].url.indexOf("../../../pages/eat/") ? (t = i.swiperItems[a].url.replace("../../../pages/", "../../pagesA/pages/"), 
                            void n.navigateTo({
                                url: t
                            })) : -1 != i.swiperItems[a].url.indexOf("../../pagesA/pages/movie/") || -1 != i.swiperItems[a].url.indexOf("../../pagesA/pages/shop/") ? (t = i.swiperItems[a].url.replace("../../pagesA/pages/", "../"), 
                            void n.navigateTo({
                                url: t
                            })) : -1 == i.swiperItems[a].url.indexOf("../../pagesA/pages/movieA/") && -1 == i.swiperItems[a].url.indexOf("../../pagesA/pages/shopA/") && -1 == i.swiperItems[a].url.indexOf("../../pagesA/pages/meituan/") && -1 == i.swiperItems[a].url.indexOf("../../pagesA/pages/elm/") && -1 == i.swiperItems[a].url.indexOf("../../pagesA/pages/eat/") && -1 == i.swiperItems[a].url.indexOf("../../pagesA/pages/userA/") && (-1 != i.swiperItems[a].url.indexOf("../meituan/") || -1 != i.swiperItems[a].url.indexOf("../elm/") || -1 != i.swiperItems[a].url.indexOf("../eat/")) ? (t = i.swiperItems[a].url.replace("../", "../../pagesA/pages/"), 
                            void n.navigateTo({
                                url: t
                            })) : void n.navigateTo({
                                url: i.swiperItems[a].url
                            });
                            var t = i.swiperItems[a].url.replace("../../../pages/", "../");
                            n.navigateTo({
                                url: t
                            });
                        } else n.navigateTo({
                            url: i.swiperItems[a].url
                        });
                    } else this.showDialog2();
                },
                loadWaimaidaohang: function() {
                    var t = this, e = s.globalData.util.url("entry/wxapp/waimaidaohang2", {
                        m: s.globalData.module_name
                    });
                    n.request({
                        url: e,
                        method: "POST",
                        header: {
                            "content-type": "application/x-www-form-urlencoded"
                        },
                        data: {
                            openid: n.getStorageSync("openid")
                        },
                        success: function(e) {
                            t.waimaidaohang = e.data.waimaidaohang;
                        }
                    });
                },
                openShopad: function(e) {
                    n.getStorageSync("userinfo").nickname || 1 != n.getStorageSync("setting").login_type || !wx.getUserProfile ? (e = e.currentTarget.dataset, 
                    this.api_url = e.item_id, this.openad(e)) : this.showDialog2();
                },
                openad: function(t) {
                    var a, e, i = this;
                    1 == t.is_warm ? t.tplid && n.getStorageSync("warn_daynum") < n.getStorageSync("setting").warn_tpl_daynum ? (a = new Array(), 
                    a = t.tplid.split(","), wx.requestSubscribeMessage({
                        tmplIds: a,
                        success: function(e) {
                            "reject" == e[a[0]] || (e = s.globalData.util.url("entry/wxapp/api", {
                                m: s.globalData.module_name,
                                o: "subscribemessage"
                            }), n.request({
                                url: e,
                                method: "POST",
                                header: {
                                    "content-type": "application/x-www-form-urlencoded"
                                },
                                data: {
                                    openid: n.getStorageSync("openid"),
                                    type: 1
                                },
                                success: function(e) {
                                    var t = i.userinfo;
                                    i.warn_num++, t.s_1_num++, i.userinfo = t, n.setStorageSync("warn_daynum", e.data.warm_daynum);
                                }
                            })), i.openad2(t);
                        },
                        fail: function(e) {
                            e.openad2(t);
                        }
                    })) : (e = s.globalData.util.url("entry/wxapp/api", {
                        m: s.globalData.module_name,
                        o: "subscribemessage"
                    }), n.request({
                        url: e,
                        method: "POST",
                        header: {
                            "content-type": "application/x-www-form-urlencoded"
                        },
                        data: {
                            openid: n.getStorageSync("openid"),
                            type: 2
                        },
                        success: function(e) {
                            n.setStorageSync("warn_daynum", e.data.warm_daynum);
                        }
                    }), i.openad2(t)) : i.openad2(t);
                },
                openad2: function(t) {
                    n.showLoading({
                        title: "加载中...",
                        mask: !1
                    });
                    var e, a, i = this;
                    1 == t.adtype ? 0 < t.appid_type2 ? (e = s.globalData.util.url("entry/wxapp/index_jump", {
                        m: s.globalData.module_name
                    }), n.request({
                        url: e,
                        method: "POST",
                        header: {
                            "content-type": "application/x-www-form-urlencoded"
                        },
                        data: {
                            openid: n.getStorageSync("openid"),
                            adid: t.item_id
                        },
                        success: function(e) {
                            1 == e.data.jump_type ? (n.navigateToMiniProgram({
                                appId: e.data.jump_appid,
                                path: e.data.jump_path
                            }), n.hideLoading()) : 2 == e.data.jump_type && (i.contact_type = "hotel", i.contact_id = t.item_id, 
                            i.contact_title = t.title, i.contact_title_text = t.title_text, i.contact_title_desc = t.title_desc, 
                            i.contact_thumb = n.getStorageSync("setting").dianwo, i.showDialog3(), n.hideLoading());
                        }
                    })) : (n.navigateToMiniProgram({
                        appId: t.appid,
                        path: t.path
                    }), n.hideLoading()) : 5 == t.adtype ? (n.navigateTo({
                        url: "../kefu/webview?return_url=" + encodeURIComponent(t.url) + "&t=" + Date.parse(new Date())
                    }), n.hideLoading()) : 10 == t.adtype ? (this.$refs.addmini.showAddMiniProgramTips = 1, 
                    n.hideLoading()) : 11 == t.adtype ? n.hideLoading() : 4 == t.adtype ? (n.setStorageSync("index_nav", t.url), 
                    -1 != t.url.indexOf("../index/") || -1 != t.url.indexOf("../meituangroup/") || -1 != t.url.indexOf("../user/") || -1 != t.url.indexOf("../movie/") || -1 != t.url.indexOf("../shop/") || -1 != t.url.indexOf("../kefu/") || -1 != t.url.indexOf("../meituan/") || -1 != t.url.indexOf("../elm/") ? n.navigateTo({
                        url: t.url
                    }) : -1 != t.url.indexOf("../../../pages/index/") || -1 != t.url.indexOf("../../../pages/user/") || -1 != t.url.indexOf("../../../pages/kefu/") ? (a = t.url.replace("../../../pages/", "../"), 
                    n.navigateTo({
                        url: a
                    })) : -1 != t.url.indexOf("../../../pages/meituan/") || -1 != t.url.indexOf("../../../pages/elm/") || -1 != t.url.indexOf("../../../pages/eat/") ? (a = t.url.replace("../../../pages/", "../../pagesA/pages/"), 
                    n.navigateTo({
                        url: a
                    })) : -1 != t.url.indexOf("../../pagesA/pages/movie/") || -1 != t.url.indexOf("../../pagesA/pages/shop/") ? (a = t.url.replace("../../pagesA/pages/", "../"), 
                    n.navigateTo({
                        url: a
                    })) : -1 == t.url.indexOf("../../pagesA/pages/movieA/") && -1 == t.url.indexOf("../../pagesA/pages/shopA/") && -1 == t.url.indexOf("../../pagesA/pages/meituan/") && -1 == t.url.indexOf("../../pagesA/pages/elm/") && -1 == t.url.indexOf("../../pagesA/pages/eat/") && -1 == t.url.indexOf("../../pagesA/pages/userA/") && (-1 != t.url.indexOf("../meituan/") || -1 != t.url.indexOf("../elm/") || -1 != t.url.indexOf("../eat/")) ? (a = t.url.replace("../", "../../pagesA/pages/"), 
                    n.navigateTo({
                        url: a
                    })) : n.navigateTo({
                        url: t.url
                    }), n.hideLoading(), n.hideLoading()) : 2 == t.adtype || 3 == t.adtype || 9 == t.adtype ? (e = s.globalData.util.url("entry/wxapp/api", {
                        m: s.globalData.module_name,
                        o: "ad_kefubind"
                    }), n.request({
                        url: e,
                        method: "POST",
                        header: {
                            "content-type": "application/x-www-form-urlencoded"
                        },
                        data: {
                            adtype: "ad_new",
                            adid: t.item_id,
                            openid: n.getStorageSync("openid")
                        },
                        success: function(e) {}
                    }), this.contact_title_desc = "", this.contact_type = "ad_new", this.contact_id = t.item_id, 
                    this.contact_title = t.title, this.contact_title_text = t.title_text, this.contact_title_desc = t.title_desc, 
                    this.contact_thumb = n.getStorageSync("setting").dianwo, n.hideLoading(), this.showDialog3()) : 8 == t.adtype ? 1 == t.mall_adtype ? n.navigateTo({
                        url: "../../pagesA/pages/mallA/huodong?id=" + t.item_id
                    }) : 2 == t.mall_adtype && this.loadMallapigoodslist(t) : 12 == t.adtype ? (n.previewImage({
                        urls: [ t.open_thumb ]
                    }), n.hideLoading()) : 13 == t.adtype && this.getCoupon(t);
                },
                loadMallapigoodslist: function(t) {
                    this.loadStatus = "loading";
                    var e = s.globalData.util.url("entry/wxapp/mallapigoodslist", {
                        m: s.globalData.module_name
                    });
                    n.request({
                        url: e,
                        method: "POST",
                        header: {
                            "content-type": "application/x-www-form-urlencoded"
                        },
                        data: {
                            openid: n.getStorageSync("openid"),
                            id: t.item_id,
                            lon: n.getStorageSync("lon"),
                            lat: n.getStorageSync("lat")
                        },
                        success: function(e) {
                            200 == e.data.code && (e.data.appid ? n.navigateToMiniProgram({
                                appId: e.data.appid,
                                path: e.data.path
                            }) : n.navigateTo({
                                url: "../../pagesA/pages/mallA/huodong?id=" + t.item_id
                            })), n.hideLoading();
                        }
                    });
                },
                getCoupon: function(t) {
                    var a = this;
                    if (n.getStorageSync("path" + t.item_id)) return n.getStorageSync("appid" + t.item_id) ? n.navigateToMiniProgram({
                        appId: n.getStorageSync("appid" + t.item_id),
                        path: n.getStorageSync("path" + t.item_id)
                    }) : n.setClipboardData({
                        data: n.getStorageSync("path" + t.item_id),
                        success: function(e) {
                            n.showToast({
                                title: "内容已复制",
                                icon: "success"
                            });
                        }
                    }), void n.hideLoading();
                    var e = s.globalData.util.url("entry/wxapp/mall_goods_getcoupon", {
                        m: s.globalData.module_name
                    });
                    n.request({
                        url: e,
                        method: "POST",
                        header: {
                            "content-type": "application/x-www-form-urlencoded"
                        },
                        data: {
                            openid: n.getStorageSync("openid"),
                            goodsid: t.goodsid,
                            pingtai: t.pingtai,
                            goodssign: t.goodssign,
                            search_id: a.search_id,
                            quan_url: t.quan_url,
                            uid: a.uid,
                            id: t.item_id
                        },
                        success: function(e) {
                            200 == e.data.code && ("tb" == t.pingtai ? (a.path = e.data.tkl, n.setStorageSync("path" + t.item_id, e.data.tkl), 
                            n.setStorageSync("pid_time", e.data.pid_time), n.getStorageSync("pid_time") != n.getStorageSync("pid_use_time") && n.setStorageSync("pid_use_time", n.getStorageSync("pid_time")), 
                            n.setClipboardData({
                                data: e.data.tkl,
                                success: function(e) {
                                    n.showToast({
                                        title: "内容已复制",
                                        icon: "success"
                                    });
                                }
                            })) : (a.appid = e.data.appid, a.path = e.data.path, n.setStorageSync("appid" + t.item_id, e.data.appid), 
                            n.setStorageSync("path" + t.item_id, e.data.path), n.navigateToMiniProgram({
                                appId: e.data.appid,
                                path: e.data.path
                            })), n.hideLoading());
                        }
                    });
                },
                taobaoauth: function() {
                    var t = this;
                    n.setClipboardData({
                        data: this.qudao_tkl,
                        success: function(e) {
                            n.showToast({
                                title: "复制成功，请打开淘宝授权",
                                icon: "none"
                            }), t.is_qudao_tkl = 1;
                        }
                    });
                },
                retaobaoauth: function() {
                    this.is_qudao_tkl = 0, this.qudao_tkl = "", this.gettaobaoauth();
                },
                notaobaoauth: function() {
                    3 == this.appid_type && n.navigateToMiniProgram({
                        appId: "wxece3a9a4c82f58c9",
                        path: n.getStorageSync("setting").default_elmwmpath
                    }), 4 == this.appid_type && n.navigateToMiniProgram({
                        appId: "wxece3a9a4c82f58c9",
                        path: n.getStorageSync("setting").default_elmscpath
                    });
                },
                touchstart: function(e) {},
                touchmove: function(e) {},
                touchend: function(e) {},
                loadtabbar: function() {
                    var e, t = this, a = "tabbar";
                    0 == n.getStorageSync("setting").movie_tabbar_isindex && (a = "movietabbar"), console.log(a), 
                    "undefined" != n.getStorageSync(a) && n.getStorageSync(a) ? this.tabBar = n.getStorageSync(a) : (e = s.globalData.util.url("entry/wxapp/api", {
                        m: s.globalData.module_name,
                        o: a
                    }), n.request({
                        url: e,
                        method: "POST",
                        header: {
                            "content-type": "application/x-www-form-urlencoded"
                        },
                        data: {
                            openid: n.getStorageSync("openid")
                        },
                        success: function(e) {
                            e = s.globalData.crypt.Decrypt(e.data.data.data, e.data.data.key), e = JSON.parse(e);
                            t.tabBar = e.data.tabbar, n.setStorageSync(a, t.tabBar);
                        }
                    }));
                },
                change: function(e) {
                    console.log(this.tabBar.list), console.log(this.tabBar.list[e]);
                    var t = this.tabBar.list[e];
                    if (this.pageKey = e, 1 == n.getStorageSync("setting").movie_tabbar_isindex ? n.setStorageSync("pageKey", e) : n.setStorageSync("moviepageKey", e), 
                    1 == t.adtype) {
                        if (1 == t.appid_type && n.getStorageSync("mtwm_url")) return void n.navigateToMiniProgram({
                            appId: "wxde8ac0a21135c07d",
                            path: n.getStorageSync("mtwm_url")
                        });
                        if (1 == t.appid_type && !n.getStorageSync("mtwm_url")) return this.appid_type = 1, 
                        void this.meituan_urlFun();
                        if (2 == t.appid_type && n.getStorageSync("mtsc_url")) return void n.navigateToMiniProgram({
                            appId: "wxde8ac0a21135c07d",
                            path: n.getStorageSync("mtsc_url")
                        });
                        if (0 == t.appid_type) return void n.navigateToMiniProgram({
                            appId: t.appid,
                            path: t.path
                        });
                    }
                    if (5 != t.adtype) {
                        if (4 == t.adtype) {
                            n.setStorageSync("index_nav", t.url);
                            var a = getCurrentPages();
                            a.reverse();
                            var i = t.url.replace("../", "");
                            console.log(i);
                            for (var o = 0; o < a.length; o++) if (console.log(a[o].route), -1 != a[o].route.indexOf(i)) return void n.navigateBack({
                                delta: o
                            });
                            if (-1 == t.url.indexOf("../index/") && -1 == t.url.indexOf("../meituangroup/") && -1 == t.url.indexOf("../user/") && -1 == t.url.indexOf("../movie/") && -1 == t.url.indexOf("../shop/") && -1 == t.url.indexOf("../kefu/") && -1 == t.url.indexOf("../elm/") && -1 == t.url.indexOf("../meituan/") && -1 == t.url.indexOf("../mall/")) return -1 != t.url.indexOf("../../../pages/index/") || -1 != t.url.indexOf("../../../pages/user/") || -1 != t.url.indexOf("../../../pages/kefu/") ? (i = t.url.replace("../../../pages/", "../"), 
                            void n.navigateTo({
                                url: i
                            })) : -1 != t.url.indexOf("../../../pages/meituan/") || -1 != t.url.indexOf("../../../pages/elm/") || -1 != t.url.indexOf("../../../pages/eat/") ? (i = t.url.replace("../../../pages/", "../../pagesA/pages/"), 
                            void n.navigateTo({
                                url: i
                            })) : -1 != t.url.indexOf("../../pagesA/pages/movie/") || -1 != t.url.indexOf("../../pagesA/pages/shop/") || -1 != t.url.indexOf("../../pagesA/pages/mallA/mallindex") ? (i = t.url.replace("../../pagesA/pages/", "../"), 
                            void n.navigateTo({
                                url: i
                            })) : -1 == t.url.indexOf("../../pagesA/pages/movieA/") && -1 == t.url.indexOf("../../pagesA/pages/shopA/") && -1 == t.url.indexOf("../../pagesA/pages/meituan/") && -1 == t.url.indexOf("../../pagesA/pages/elm/") && -1 == t.url.indexOf("../../pagesA/pages/eat/") && -1 == t.url.indexOf("../../pagesA/pages/userA/") && (-1 != t.url.indexOf("../meituan/") || -1 != t.url.indexOf("../elm/") || -1 != t.url.indexOf("../eat/")) ? (i = t.url.replace("../", "../../pagesA/pages/"), 
                            void n.navigateTo({
                                url: i
                            })) : void n.navigateTo({
                                url: t.url
                            });
                            n.navigateTo({
                                url: t.url
                            });
                        }
                    } else n.navigateTo({
                        url: "../kefu/webview?return_url=" + encodeURIComponent(t.url)
                    });
                },
                fatherHeight: function(e) {
                    this.height = e;
                },
                showMenu1: function() {
                    this.show1 = !0;
                },
                closeMenu1: function() {
                    this.show1 = !1;
                },
                select1: function(e) {
                    n.showLoading({
                        title: "加载中...",
                        mask: !1
                    });
                    var t = [];
                    if (0 == e) this.cinemalist = this.cinemalist2; else {
                        for (var a = 0; a < this.cinemalist2.length; a++) this.selectMenu1[e] == this.cinemalist2[a].regionName && t.push(this.cinemalist2[a]);
                        this.cinemalist = t;
                    }
                    n.hideLoading();
                },
                confirm: function(e) {
                    "" != e ? (n.showLoading({
                        title: "加载中...",
                        mask: !1
                    }), this.value1 = e, this.movielist = [], this.cinemalist = [], this.loadmovielist()) : n.showToast({
                        title: "请输入关键词",
                        icon: "none"
                    });
                },
                clear: function(e) {
                    n.showLoading({
                        title: "加载中...",
                        mask: !1
                    }), this.value1 = "", this.movielist = this.movielists, this.cinemalist = this.cinemalists, 
                    n.hideLoading();
                },
                taobaoauth_done: function() {
                    var a = this, e = s.globalData.util.url("entry/wxapp/api", {
                        m: s.globalData.module_name,
                        o: "taobaoauth_done"
                    });
                    n.request({
                        url: e,
                        method: "POST",
                        header: {
                            "content-type": "application/x-www-form-urlencoded"
                        },
                        data: {
                            openid: n.getStorageSync("openid"),
                            appid_type: a.appid_type
                        },
                        success: function(e) {
                            var t;
                            0 != e.data.status ? (t = s.globalData.crypt.Decrypt(e.data.data.data, e.data.data.key), 
                            t = JSON.parse(t), 1 == e.data.status ? (3 == a.appid_type && (n.setStorageSync("elmwm_url", t.elmwm_url), 
                            n.setStorageSync("elmwmqrcode", t.elmwm_qrcode), n.setStorageSync("elmwm_h5", t.elmwm_h5), 
                            n.setStorageSync("pid_time", +t.pid_time), n.getStorageSync("pid_time") != n.getStorageSync("pid_use_time") && n.setStorageSync("pid_use_time", n.getStorageSync("pid_time")), 
                            n.setStorageSync("is_qudao", t.is_qudao), a.closeDialog1(), n.navigateToMiniProgram({
                                appId: "wxece3a9a4c82f58c9",
                                path: t.elmwm_url
                            })), 4 == a.appid_type && (n.setStorageSync("elmsc_url", t.elmsc_url), n.setStorageSync("elmscqrcode", t.elmsc_qrcode), 
                            n.setStorageSync("elmsc_h5", t.elmsc_h5), n.setStorageSync("pid_time", +t.pid_time), 
                            n.getStorageSync("pid_time") != n.getStorageSync("pid_use_time") && n.setStorageSync("pid_use_time", n.getStorageSync("pid_time")), 
                            n.setStorageSync("is_qudao", t.is_qudao), a.closeDialog1(), n.navigateToMiniProgram({
                                appId: "wxece3a9a4c82f58c9",
                                path: t.elmsc_url
                            }))) : n.showModal({
                                title: "提示",
                                content: "未获取到您的授权信息，请重试！",
                                showCancel: !1,
                                success: function(e) {
                                    e.confirm || e.cancel;
                                }
                            })) : n.showModal({
                                title: "提示",
                                content: "未获取到您的授权信息，请重试！",
                                showCancel: !1,
                                success: function(e) {
                                    e.confirm || e.cancel;
                                }
                            });
                        }
                    });
                },
                gettaobaoauth: function() {
                    var t = this, a = this, e = s.globalData.util.url("entry/wxapp/api", {
                        m: s.globalData.module_name,
                        o: "gettaobaoauth"
                    });
                    n.request({
                        url: e,
                        method: "POST",
                        header: {
                            "content-type": "application/x-www-form-urlencoded"
                        },
                        data: {
                            openid: n.getStorageSync("openid"),
                            appid_type: a.appid_type
                        },
                        success: function(e) {
                            1 == e.data.status ? (a.showDialog1(), a.qudao_tkl = e.data.data) : 0 == e.data.status ? n.showToast({
                                title: "获取授权信息出错",
                                icon: "none"
                            }) : 2 == e.data.status && (e = s.globalData.crypt.Decrypt(e.data.data.data, e.data.data.key), 
                            e = JSON.parse(e), console.log("gettaobaoauth:" + e), 3 == t.appid_type && (n.setStorageSync("elmwm_url", e.elmwm_url), 
                            n.setStorageSync("elmwmqrcode", e.elmwm_qrcode), n.setStorageSync("elmwm_h5", e.elmwm_h5), 
                            n.setStorageSync("pid_time", +e.pid_time), n.getStorageSync("pid_time") != n.getStorageSync("pid_use_time") && n.setStorageSync("pid_use_time", n.getStorageSync("pid_time")), 
                            n.setStorageSync("is_qudao", e.is_qudao), n.navigateToMiniProgram({
                                appId: "wxece3a9a4c82f58c9",
                                path: e.elmwm_url
                            }), console.log(n.getStorageSync("elmwm_url"))), 4 == t.appid_type && (n.setStorageSync("elmsc_url", e.elmsc_url), 
                            n.setStorageSync("elmscqrcode", e.elmsc_qrcode), n.setStorageSync("elmsc_h5", e.elmsc_h5), 
                            n.setStorageSync("pid_time", +e.pid_time), n.getStorageSync("pid_time") != n.getStorageSync("pid_use_time") && n.setStorageSync("pid_use_time", n.getStorageSync("pid_time")), 
                            n.setStorageSync("is_qudao", e.is_qudao), n.navigateToMiniProgram({
                                appId: "wxece3a9a4c82f58c9",
                                path: e.elmsc_url
                            }), console.log(n.getStorageSync("elmsc_url"))));
                        }
                    });
                },
                closeContact: function() {
                    this.closeDialog3();
                },
                addmini: function() {
                    this.$refs.addmini.showAddMiniProgramTips = 1;
                },
                autoUpdate: function() {
                    var t = n.getUpdateManager();
                    t.onCheckForUpdate(), t.onUpdateReady(function() {
                        n.showModal({
                            title: "更新提示",
                            content: "新版本已经准备好，是否重启应用？",
                            success: function(e) {
                                e.confirm && t.applyUpdate();
                            }
                        });
                    });
                },
                openMovieInfo: function(e) {
                    n.setStorageSync("moviedetail", e.currentTarget.dataset.movie), n.navigateTo({
                        url: "../../pagesA/pages/movieA/detail2?filmid=" + e.currentTarget.dataset.movie.filmId
                    });
                },
                opencinema: function(e) {
                    n.setStorageSync("cinemadetail", e.currentTarget.dataset.cinemaid), n.navigateTo({
                        url: "../../pagesA/pages/movieA/cinema?movie_id=" + this.movielists[0][0].filmId + "&cinema_id=" + e.currentTarget.dataset.cinemaid.cinemaId
                    });
                },
                getLocation: function() {
                    var a = this;
                    n.getLocation({
                        type: "wgs84",
                        success: function(e) {
                            var t = s.globalData.util.url("entry/wxapp/address", {
                                m: s.globalData.module_name
                            });
                            n.setStorageSync("lon", e.longitude), n.setStorageSync("lat", e.latitude), a.lat = e.latitude, 
                            a.lon = e.longitude, n.request({
                                url: t,
                                method: "POST",
                                header: {
                                    "content-type": "application/x-www-form-urlencoded"
                                },
                                data: {
                                    lon: e.longitude,
                                    lat: e.latitude
                                },
                                success: function(e) {
                                    n.setStorageSync("cityid", e.data.data.ci), n.setStorageSync("cityCode", e.data.data.cityCode), 
                                    n.setStorageSync("city", e.data.data.city), a.city = e.data.data.city, a.cityid = e.data.data.ci, 
                                    a.loadmovielist();
                                }
                            });
                        },
                        fail: function(e) {
                            n.hideLoading(), n.showModal({
                                title: "系统提示",
                                content: "请授权获取您的位置信息",
                                showCancel: !0,
                                success: function(e) {
                                    e.confirm && a.again_getLocation(), a.cityid = 0;
                                }
                            }), a.lat = 0, a.lon = 0;
                        }
                    });
                },
                again_getLocation: function() {
                    var t = this;
                    "" == this.city ? n.getSetting({
                        success: function(e) {
                            null != e.authSetting["scope.userLocation"] && 1 != e.authSetting["scope.userLocation"] ? n.showModal({
                                title: "是否授权当前位置",
                                content: "需要获取您的地理位置，请确认授权，否则无法获取您所需数据",
                                success: function(e) {
                                    e.cancel ? n.showToast({
                                        title: "授权失败",
                                        icon: "success",
                                        duration: 1e3
                                    }) : e.confirm && n.openSetting({
                                        success: function(e) {
                                            1 == e.authSetting["scope.userLocation"] ? (n.showToast({
                                                title: "授权成功",
                                                icon: "success",
                                                duration: 1e3
                                            }), t.getLocation(t)) : n.showToast({
                                                title: "授权失败",
                                                icon: "success",
                                                duration: 1e3
                                            });
                                        }
                                    });
                                }
                            }) : (e.authSetting["scope.userLocation"], t.getLocation(t));
                        }
                    }) : n.navigateTo({
                        url: "../../pagesA/pages/movieA/city"
                    });
                },
                navChange: function(e) {
                    0 == (this.currentIndex = e) && 0 == this.movielist[0].length && (n.showLoading({
                        title: "加载中...",
                        mask: !1
                    }), this.loadmovielist1()), 1 == e && 0 == this.cinemalist.length && (n.showLoading({
                        title: "加载中...",
                        mask: !1
                    }), this.loadmovielist2()), 2 == e && 0 == this.movielist[2].length && (n.showLoading({
                        title: "加载中...",
                        mask: !1
                    }), this.loadmovielist3());
                },
                swiperChange: function(e) {
                    e = e.detail.current;
                    0 == (this.currentIndex = e) && 0 == this.movielist[0].length && (n.showLoading({
                        title: "加载中...",
                        mask: !1
                    }), this.loadmovielist1()), 1 == e && 0 == this.cinemalist.length && (this.cinemalist = [], 
                    n.showLoading({
                        title: "加载中...",
                        mask: !1
                    }), this.loadmovielist2()), 2 == e && 0 == this.movielist[2].length && (this.movielist[2] = [], 
                    n.showLoading({
                        title: "加载中...",
                        mask: !1
                    }), this.loadmovielist3());
                },
                scrollend: function() {},
                loadmovielist: function() {
                    var t = this, a = this, e = s.globalData.util.url("entry/wxapp/movielistindex", {
                        m: s.globalData.module_name
                    });
                    n.request({
                        url: e,
                        method: "POST",
                        header: {
                            "content-type": "application/x-www-form-urlencoded"
                        },
                        data: {
                            openid: n.getStorageSync("openid"),
                            keyword: a.value1,
                            lon: n.getStorageSync("lon"),
                            lat: n.getStorageSync("lat"),
                            cityid: n.getStorageSync("cityid")
                        },
                        success: function(e) {
                            a.sharetitle = e.data.sharetitle, a.sharepic = e.data.sharepic, a.moviehotlist = e.data.hot, 
                            n.setStorageSync("hotmovie", e.data.hot), n.setStorageSync("hot", e.data.hot), a.movielist[0] = e.data.hot, 
                            a.value1 || (a.movielists[0] = e.data.hot), t.onloading = 0, a.loadmovielist2(), 
                            a.loadmovielist3();
                        }
                    });
                },
                loadmovielist1: function() {
                    var t = this, e = s.globalData.util.url("entry/wxapp/movielistindex", {
                        m: s.globalData.module_name
                    });
                    n.request({
                        url: e,
                        method: "POST",
                        header: {
                            "content-type": "application/x-www-form-urlencoded"
                        },
                        data: {
                            openid: n.getStorageSync("openid"),
                            keyword: t.value1,
                            lon: n.getStorageSync("lon"),
                            lat: n.getStorageSync("lat"),
                            cityid: n.getStorageSync("cityid")
                        },
                        success: function(e) {
                            t.moviehotlist = e.data.hot, n.setStorageSync("hot", e.data.hot), t.movielist[0] = e.data.hot, 
                            t.value1 || (t.movielists[0] = e.data.hot), n.hideLoading();
                        }
                    });
                },
                loadmovielist2: function() {
                    var a = this, e = s.globalData.util.url("entry/wxapp/movielistindex2", {
                        m: s.globalData.module_name
                    });
                    n.request({
                        url: e,
                        method: "POST",
                        header: {
                            "content-type": "application/x-www-form-urlencoded"
                        },
                        data: {
                            openid: n.getStorageSync("openid"),
                            keyword: a.value1,
                            lon: n.getStorageSync("lon"),
                            lat: n.getStorageSync("lat"),
                            cityid: n.getStorageSync("cityid")
                        },
                        success: function(e) {
                            if (a.cinemalist = e.data.cinema, a.cinemalist2 = e.data.cinema, a.value1 || (a.cinemalist2s = e.data.cinema), 
                            a.selectMenu1 = [ "全部区域" ], a.cinemalist) for (var t = 0; t < a.cinemalist.length; t++) -1 < a.selectMenu1.indexOf(a.cinemalist[t].regionName) || a.selectMenu1.push(a.cinemalist[t].regionName);
                            a.selectIndex1 = 0;
                        }
                    });
                },
                loadmovielist3: function() {
                    var t = this, e = s.globalData.util.url("entry/wxapp/movielistindex3", {
                        m: s.globalData.module_name
                    });
                    n.request({
                        url: e,
                        method: "POST",
                        header: {
                            "content-type": "application/x-www-form-urlencoded"
                        },
                        data: {
                            openid: n.getStorageSync("openid"),
                            keyword: t.value1,
                            lon: n.getStorageSync("lon"),
                            lat: n.getStorageSync("lat"),
                            cityid: n.getStorageSync("cityid"),
                            index: 3
                        },
                        success: function(e) {
                            t.moviecomelist = e.data.come, t.movielist[2] = e.data.come, t.value1 || (t.movielists[2] = e.data.come), 
                            n.hideLoading();
                        }
                    });
                },
                back: function() {
                    wx.navigateBack({
                        delta: 1
                    });
                }
            }), o);
            l.default = o;
        }).call(this, d("543d").default);
    },
    a649: function(e, t, a) {
        var i = a("c37f");
        a.n(i).a;
    },
    bf53: function(e, t, a) {
        a.d(t, "b", function() {
            return o;
        }), a.d(t, "c", function() {
            return n;
        }), a.d(t, "a", function() {
            return i;
        });
        var i = {
            sjTabBar: function() {
                return a.e("components/sj-tab-bar/sj-tab-bar").then(a.bind(null, "1ba9"));
            }
        }, o = function() {
            var i = this, e = (i.$createElement, i._self._c, i.__map(i.tabs, function(e, a) {
                return {
                    $orig: i.__get_orig(e),
                    l0: i.__map(i.movielist[a], function(e, t) {
                        return {
                            $orig: i.__get_orig(e),
                            g0: 1 != a && 0 < i.movielist[a].length ? e.publishDate.substring(0, 10) : null
                        };
                    })
                };
            }));
            i.$mp.data = Object.assign({}, {
                $root: {
                    l1: e
                }
            });
        }, n = [];
    },
    c37f: function(e, t, a) {}
}, [ [ "67e1", "common/runtime", "common/vendor" ] ] ]);